Optimal. Leaf size=117 \[ -\frac {x^{m+1} e^{-\frac {2 a n \sqrt {-\frac {(m+1)^2}{n^2}}}{m+1}} \left (c x^n\right )^{\frac {m+1}{n}}}{8 (m+1)}-\frac {1}{4} x^{m+1} \log (x) e^{\frac {2 a n \sqrt {-\frac {(m+1)^2}{n^2}}}{m+1}} \left (c x^n\right )^{-\frac {m+1}{n}}+\frac {x^{m+1}}{2 (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {4493, 4489} \[ -\frac {x^{m+1} e^{-\frac {2 a n \sqrt {-\frac {(m+1)^2}{n^2}}}{m+1}} \left (c x^n\right )^{\frac {m+1}{n}}}{8 (m+1)}-\frac {1}{4} x^{m+1} \log (x) e^{\frac {2 a n \sqrt {-\frac {(m+1)^2}{n^2}}}{m+1}} \left (c x^n\right )^{-\frac {m+1}{n}}+\frac {x^{m+1}}{2 (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4489
Rule 4493
Rubi steps
\begin {align*} \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx &=\frac {\left (x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \operatorname {Subst}\left (\int x^{-1+\frac {1+m}{n}} \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log (x)\right ) \, dx,x,c x^n\right )}{n}\\ &=-\frac {\left (x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \operatorname {Subst}\left (\int \left (\frac {e^{\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}}}{x}-2 x^{-1+\frac {1+m}{n}}+e^{-\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{-1+\frac {2 (1+m)}{n}}\right ) \, dx,x,c x^n\right )}{4 n}\\ &=\frac {x^{1+m}}{2 (1+m)}-\frac {e^{-\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{1+m} \left (c x^n\right )^{\frac {1+m}{n}}}{8 (1+m)}-\frac {1}{4} e^{\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}} \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.48, size = 0, normalized size = 0.00 \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.43, size = 107, normalized size = 0.91 \[ -\frac {{\left (2 \, {\left (m + 1\right )} e^{\left (-\frac {2 \, {\left ({\left (m + 1\right )} n \log \relax (x) - 2 i \, a n + {\left (m + 1\right )} \log \relax (c)\right )}}{n}\right )} \log \relax (x) - 4 \, e^{\left (-\frac {{\left (m + 1\right )} n \log \relax (x) - 2 i \, a n + {\left (m + 1\right )} \log \relax (c)}{n}\right )} + 1\right )} e^{\left (\frac {2 \, {\left ({\left (m + 1\right )} n \log \relax (x) - 2 i \, a n + {\left (m + 1\right )} \log \relax (c)\right )}}{n} + \frac {2 i \, a n - {\left (m + 1\right )} \log \relax (c)}{n}\right )}}{8 \, {\left (m + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 4.96, size = 498, normalized size = 4.26 \[ -\frac {m^{2} n^{2} x x^{m} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} + m^{2} n^{2} x x^{m} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} - 2 \, m^{2} n^{2} x x^{m} + 2 \, m n^{2} x x^{m} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} + m n x x^{m} {\left | m n + n \right |} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} + 2 \, m n^{2} x x^{m} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} - m n x x^{m} {\left | m n + n \right |} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} - 4 \, m n^{2} x x^{m} + n^{2} x x^{m} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} + n x x^{m} {\left | m n + n \right |} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} + n^{2} x x^{m} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} - n x x^{m} {\left | m n + n \right |} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \relax (x) + {\left | m n + n \right |} \log \relax (c)}{n^{2}}\right )} + 2 \, {\left (m n + n\right )}^{2} x x^{m} - 2 \, n^{2} x x^{m}}{4 \, {\left (m^{3} n^{2} + 3 \, m^{2} n^{2} - {\left (m n + n\right )}^{2} m + 3 \, m n^{2} - {\left (m n + n\right )}^{2} + n^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.10, size = 0, normalized size = 0.00 \[ \int x^{m} \left (\sin ^{2}\left (a +\frac {\ln \left (c \,x^{n}\right ) \sqrt {-\frac {\left (1+m \right )^{2}}{n^{2}}}}{2}\right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 173, normalized size = 1.48 \[ \frac {4 \, {\left (\cos \left (2 \, a\right )^{2} + \sin \left (2 \, a\right )^{2}\right )} c^{\frac {m}{n} + \frac {1}{n}} x x^{m} - c^{\frac {2 \, m}{n} + \frac {2}{n}} x \cos \left (2 \, a\right ) e^{\left (m \log \relax (x) + \frac {m \log \left (x^{n}\right )}{n} + \frac {\log \left (x^{n}\right )}{n}\right )} - 2 \, {\left (\cos \left (2 \, a\right )^{3} + \cos \left (2 \, a\right ) \sin \left (2 \, a\right )^{2} + {\left (\cos \left (2 \, a\right )^{3} + \cos \left (2 \, a\right ) \sin \left (2 \, a\right )^{2}\right )} m\right )} \log \relax (x)}{8 \, {\left ({\left (\cos \left (2 \, a\right )^{2} + \sin \left (2 \, a\right )^{2}\right )} c^{\frac {m}{n} + \frac {1}{n}} m + {\left (\cos \left (2 \, a\right )^{2} + \sin \left (2 \, a\right )^{2}\right )} c^{\frac {m}{n} + \frac {1}{n}}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.85, size = 145, normalized size = 1.24 \[ \frac {x\,x^m}{2\,m+2}-\frac {x\,x^m\,{\mathrm {e}}^{-a\,2{}\mathrm {i}}\,\frac {1}{{\left (c\,x^n\right )}^{\sqrt {-\frac {2\,m}{n^2}-\frac {1}{n^2}-\frac {m^2}{n^2}}\,1{}\mathrm {i}}}}{4\,m+4-n\,\sqrt {-\frac {{\left (m+1\right )}^2}{n^2}}\,4{}\mathrm {i}}-\frac {x\,x^m\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{\sqrt {-\frac {2\,m}{n^2}-\frac {1}{n^2}-\frac {m^2}{n^2}}\,1{}\mathrm {i}}}{4\,m+4+n\,\sqrt {-\frac {{\left (m+1\right )}^2}{n^2}}\,4{}\mathrm {i}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{m} \sin ^{2}{\left (a + \frac {\sqrt {- \frac {m^{2}}{n^{2}} - \frac {2 m}{n^{2}} - \frac {1}{n^{2}}} \log {\left (c x^{n} \right )}}{2} \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________